xl: correct handling of extra_config in main_cpupoolcreate
authorWei Liu <wei.liu2@citrix.com>
Tue, 14 Jul 2015 16:41:10 +0000 (17:41 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Jul 2015 09:58:08 +0000 (10:58 +0100)
commit705c9e12426cba82804cb578fc70785281655d94
tree1683d6356c81729a46e5dba26f5673a0d150c5b6
parent573150f8f141cb2e5135719c1a8c6d22f30c7d46
xl: correct handling of extra_config in main_cpupoolcreate

Don't dereference extra_config if it's NULL. Don't leak extra_config in
the end.

Also fixed a typo in error string while I was there.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c